package net.wnag.order.servcice.impl;

import net.wang.gmall.service.IOrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class MainConsumerTest {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("consumer.xml");
        context.start();
        IOrderService orderService = context.getBean(IOrderService.class);
        orderService.initOrder("1a");
        System.in.read();
    }
}
